package com.xtkj.superclub_entity.entity.travel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xtkj.superclub_entity.entity.user.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lizheqi
 * @create 2020-01-02-10:57
 */
@TableName("c_travels_comments")
@ToString
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Data
public class TravelComment implements Serializable {
    @TableId(value = "travel_comment_id",type = IdType.INPUT)
    private String travelCommentId;//游记评论编号
    private String userId;//评论人编号
    @TableField(exist = false)
    private User user;
    private String travelId;//游记编号
    @TableField(exist = false)
    private Travel travel;
    private String travelComment;//游记评论
    private Date createdtm;//创建日期
    private Date updatedtm;//更新日期
}
